package Core;

import javax.microedition.lcdui.Graphics;

public class ControlImage extends Img
{
	public int align=0, xshift=0, yshift=0;

	public static ControlImage NOTIFER_0 = new ControlImage("/notifers/0.png", ALIGN.LEFT | ALIGN.TOP, -2, -2);
	public static ControlImage NOTIFER_1 = new ControlImage("/notifers/1.png", ALIGN.LEFT | ALIGN.TOP, -2, -2);
	public static ControlImage NOTIFER_2 = new ControlImage("/notifers/2.png", ALIGN.LEFT | ALIGN.TOP, -2, -2);
	public static ControlImage NOTIFER_3 = new ControlImage("/notifers/3.png", ALIGN.LEFT | ALIGN.TOP, -2, -2);
	public static ControlImage NOTIFER_4 = new ControlImage("/notifers/4.png", ALIGN.LEFT | ALIGN.TOP, -2, -2);
	public static ControlImage NOTIFER_5 = new ControlImage("/notifers/5.png", ALIGN.LEFT | ALIGN.TOP, -2, -2);
	public static ControlImage NOTIFER_6 = new ControlImage("/notifers/6.png", ALIGN.LEFT | ALIGN.TOP, -2, -2);
	public static ControlImage NOTIFER_7 = new ControlImage("/notifers/7.png", ALIGN.LEFT | ALIGN.TOP, -2, -2);
	public static ControlImage NOTIFER_8 = new ControlImage("/notifers/8.png", ALIGN.LEFT | ALIGN.TOP, -2, -2);
	public static ControlImage NOTIFER_9 = new ControlImage("/notifers/9.png", ALIGN.LEFT | ALIGN.TOP, -2, -2);
	public static ControlImage NOTIFER_LS = new ControlImage("/notifers/leftSoft.png", ALIGN.LEFT | ALIGN.TOP, -2, -2);
	public static ControlImage NOTIFER_RS = new ControlImage("/notifers/rightSoft.png", ALIGN.LEFT | ALIGN.TOP, -2, -2);
	public static ControlImage NOTIFER_C = new ControlImage("/notifers/e.png", ALIGN.LEFT | ALIGN.TOP, -2, -2);
	public static ControlImage NOTIFER_S = new ControlImage("/notifers/s.png", ALIGN.LEFT | ALIGN.TOP, -2, -2);
	public static ControlImage NOTIFER_P = new ControlImage("/notifers/p.png", ALIGN.LEFT | ALIGN.TOP, -2, -2);
	public static ControlImage BACK_R = new ControlImage("/back.png", ALIGN.RIGHT);
	public static ControlImage BACK_C = new ControlImage("/back.png", ALIGN.CENTER);

	public ControlImage(String path, int align)
	{
		super(path);
		this.align = align;
	}

	public ControlImage(String path, int align, int sx, int sy)
	{
		super(path);
		this.align = align;
		xshift = sx;
		yshift = sy;
	}

	public void draw(Graphics g, int x, int y)
	{
		x+=xshift;
		y+=yshift;
		super.draw(g, x, y);
	}
}
